package happywing.client.widget;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;

public class UserFace extends Composite {
	private static final String ROOTPATH="/pics/face/";
	public UserFace(String imgName){
		FlowPanel panel=new FlowPanel();
		Image image=new Image();
		image.setUrl(ROOTPATH+imgName);
		panel.add(image);
		
		panel.setStyleName("user-face");
		
		initWidget(panel);
	}
}
